package com.shanglv.web.common.directive;

import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateModel;


public class TemplateBodyModel implements TemplateModel{

    private String tagName;

    private TemplateDirectiveBody childNewBody;

    private TemplateDirectiveBody parentOldBody;

    private boolean needAppend ;

    public TemplateBodyModel(String tagName, TemplateDirectiveBody childNewBody,boolean needAppend) {
        this.tagName = tagName;
        this.childNewBody = childNewBody;
        this.needAppend = needAppend;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public TemplateDirectiveBody getChildNewBody() {
        return childNewBody;
    }

    public void setChildNewBody(TemplateDirectiveBody childNewBody) {
        this.childNewBody = childNewBody;
    }

    public TemplateDirectiveBody getParentOldBody() {
        return parentOldBody;
    }

    public void setParentOldBody(TemplateDirectiveBody parentOldBody) {
        this.parentOldBody = parentOldBody;
    }

    public boolean isNeedAppend() {
        return needAppend;
    }

    public void setNeedAppend(boolean needAppend) {
        this.needAppend = needAppend;
    }
}
